clear r;
for n = 1:32
    r(n) = rank(magic(n));
end